package com.itheima.reggie.dto;

import com.itheima.reggie.enity.Dish;
import com.itheima.reggie.enity.DishFlavor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/*
 * 我们自定义一个实体类，
 * 继承自Dish，并对Dish的属性进行拓展，增加 flavors 集合属性(内部封装DishFlavor)
 * */
@Data
public class DishDto extends Dish {
    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

    private Integer copies;
}
